﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Storage;

namespace _2DGame
{
    class GameObject
    {
        Texture2D texture;
        SpriteFont text;

        protected Vector2 _Cord;
        public Texture2D Texture {
            get { return texture; }
            set { texture = value; }
        }
        public Vector2 Cord {
            get { return _Cord; }
            set { _Cord = value; }
        }
        public SpriteFont Text {
            get { return text; }
            set { text = value; }
        }
        public GameObject(Vector2 cord)
        {
            _Cord = cord;
        }
        public void DrawObject(SpriteBatch spriteBatch)
        {
           spriteBatch.Begin();
           spriteBatch.Draw(texture, _Cord, Color.White);
           spriteBatch.End();
        }
    }
}
